Capital Gain Result
Constructor - invalid result with an error message.
Return
CapitalGainResult instance with no values, marked invalid, and with the specified error key.
Parameters
Resource key for message to display to the user (localized).
Constructor - invalid result with an error message.
Return
CapitalGainResult instance with no values, marked invalid, and with the specified error key.
Parameters
Resource key for message to display to the user (localized).
the source txn for this error
see CapitalGainResult.useTaxDate. Default false. @since MD2027
see CapitalGainResult.selectSalesByTaxDate. Default false. @since MD2027
Constructor - valid (simple) result with an optional message key.
Return
CapitalGainResult instance with (simple) values, marked valid, and with an optional message key.
Parameters
Total combined basis for the sale transaction.
Short term gain basis - cost of short term portion of the sale.
Long term gain basis - cost of long term portion of the sale.
Number of short term shares sold.
Number of long term shares sold.
Total number of available short term shares.
Total number of available long term shares.
Resource key for message to display to the user (localized).
Constructor - valid (simple) result with an optional message key.
Return
CapitalGainResult instance with (simple) values, marked valid, and with an optional message key.
Parameters
The source txn for this sale/gain
Total combined basis for the sale transaction.
Short term gain basis - cost of short term portion of the sale.
Long term gain basis - cost of long term portion of the sale.
Number of short term shares sold.
Number of long term shares sold.
Total number of available short term shares.
Total number of available long term shares.
Resource key for message to display to the user (localized).
Constructor - valid (complete) result with an optional message key.
Return
CapitalGainResult instance with (complete) values, marked valid, and with an optional message key.
Parameters
Security account for this gain.
The asof date used to calculate this gain.
The DateRange used when generating this gain.
Number of shares sold.
Number of short term shares sold.
Number of long term shares sold.
Total number of available shares.
Total number of available short term shares.
Total number of available long term shares.
Total sales value for this gain
Short term sales value for this gain
Long term sales value for this gain
Total combined basis for the sale transaction.
Short term gain basis - cost of short term portion of the sale.
Long term gain basis - cost of long term portion of the sale.
Total gains for this sale
Total short term gains for this sale
Total long term gains for this sale
Resource key for message to display to the user (localized).
Constructor - valid (complete) result with an optional message key.
Return
CapitalGainResult instance with (complete) values, marked valid, and with an optional message key.
Parameters
The source txn for this sale/gain
Security account for this gain.
The asof date used to calculate this gain.
The DateRange used when generating this gain.
Number of shares sold.
Number of short term shares sold.
Number of long term shares sold.
Total number of available shares.
Total number of available short term shares.
Total number of available long term shares.
Total sales value for this gain
Short term sales value for this gain
Long term sales value for this gain
Total combined basis for the sale transaction.
Short term gain basis - cost of short term portion of the sale.
Long term gain basis - cost of long term portion of the sale.
Total gains for this sale
Total short term gains for this sale
Total long term gains for this sale
Resource key for message to display to the user (localized).